<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
    <title>吉象出海 - 消息中心</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        :root {
            --primary: #EAA82A;  /* 大象黄 - 品牌主色 */
            --secondary: #2E8B57; /* 森林绿 - 辅助色 */
            --dark: #1a2e3b;     /* 深蓝色 */
            --danger: #D0021B;   /* 警示红 */
            --text: #374151;    /* 主要文字色 */
            --light-bg: #F8F9FA; /* 浅灰背景 */
            --card-shadow: 0 2px 12px rgba(0,0,0,0.06);
            --primary-light: #f1c15d;
            --primary-dark: #d3941d;
            --accent: #e74c3c;
            --light: #f8f6f2;
            --gray: #95a5a6;
            --light-gray: #eef1f5;
            --radius: 12px;
            --transition: all 0.3s ease;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
        }
          /* 全局链接样式 */
        a {
            color: inherit;
            text-decoration: none;
        }
		
        body {
            background-color: #fff;
            color: var(--text);
            max-width: 428px;
            margin: 0 auto;
            padding-bottom: 0;
            position: relative;
            line-height: 1.6;
        }
        
        /* 顶部品牌区域 - 与home.html一致 */
        .brand-header {
            text-align: center;
            padding: 12px 0;
            background: linear-gradient(to bottom, #ffffff, #F8F9FA);
            position: relative;
            border-radius: 0;
            margin-bottom: 0;
            color: var(--primary);
            border-bottom: none;
        }
        
        .brand-title {
            font-size: 22px;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 4px;
            position: relative;
            display: inline-block;
        }
        
        .brand-subtitle {
            font-size: 12px;
            color: var(--text);
            letter-spacing: 2px;
            opacity: 0.8;
            margin-top: 0;
            padding: 0;
            line-height: normal;
        }
        
        .elephant-decoration {
            position: absolute;
            top: 15px;
            left: 20px;
            opacity: 0.15;
            font-size: 32px;
            transform: rotate(-15deg);
            z-index: 0;
            color: var(--primary);
        }
        
        /* 消息页面特有样式 */
        .container {
            max-width: 100%;
            margin: 0 auto;
            min-height: 100vh;
            padding-bottom: 80px;
        }
        
        /* 页面标题 */
        .page-title {
            font-size: 18px;
            font-weight: 700;
            text-align: center;
            padding: 15px 0;
            position: relative;
            background: white;
            border-bottom: 1px solid #eee;
        }
        
        /* 返回按钮 */
        .back-btn {
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: var(--light-bg);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            cursor: pointer;
        }
        
        /* 分类导航 */
        .category-nav {
            display: flex;
            padding: 0 15px;
            overflow-x: auto;
            gap: 8px;
            background: white;
            border-bottom: 1px solid #eee;
            scrollbar-width: none; /* Firefox */
        }
        
        .category-nav::-webkit-scrollbar {
            display: none; /* Chrome/Safari */
        }
        
        .category-tab {
            padding: 12px 15px;
            background: var(--light-bg);
            border-radius: 20px;
            font-size: 14px;
            white-space: nowrap;
            transition: all 0.3s;
            cursor: pointer;
            position: relative;
        }
        
        .category-tab.active {
            background: var(--primary);
            color: white;
            font-weight: 500;
        }
        
        .category-tab .badge {
            position: absolute;
            top: 5px;
            right: 5px;
            background: var(--accent);
            color: white;
            font-size: 10px;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        /* 操作栏 */
        .action-bar {
            display: flex;
            padding: 12px 15px;
            background: white;
            border-bottom: 1px solid #eee;
            gap: 10px;
        }
        
        .search-box {
            position: relative;
            flex: 1;
        }
        
        .search-box input {
            width: 100%;
            padding: 10px 15px 10px 35px;
            border: 1px solid #ddd;
            border-radius: 20px;
            font-size: 14px;
        }
        
        .search-box i {
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--gray);
        }
        
        .filter-btn {
            background: white;
            border: 1px solid #ddd;
            border-radius: 20px;
            padding: 10px 12px;
            font-size: 14px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        /* 收益面板 */
        .earnings-panel {
            background: linear-gradient(to right, #4a3a20, #7d5d28);
            color: white;
            border-radius: var(--radius);
            margin: 15px;
            padding: 15px;
            box-shadow: var(--card-shadow);
        }
        
        .panel-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
        }
        
        .panel-title {
            font-size: 16px;
            font-weight: 600;
        }
        
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
        }
        
        .stat-item {
            background: rgba(255,255,255,0.1);
            padding: 12px;
            border-radius: var(--radius);
            text-align: center;
        }
        
        .stat-value {
            font-size: 18px;
            font-weight: 700;
            margin: 8px 0 4px;
        }
        
        .stat-label {
            font-size: 13px;
            opacity: 0.8;
        }
        
        /* 消息列表 */
        .message-list {
            padding: 0 15px 15px;
        }
        
        .section-title {
            font-size: 15px;
            font-weight: 600;
            margin: 15px 0 12px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .section-title i {
            color: var(--primary);
        }
        
        .message-item {
            background: white;
            border-radius: var(--radius);
            padding: 15px;
            margin-bottom: 12px;
            box-shadow: var(--card-shadow);
            border-left: 3px solid #ddd;
            transition: var(--transition);
            position: relative;
        }
        
        .message-item.pinned {
            border-left: 3px solid var(--primary);
            background: #FFFBEB;
        }
        
        .message-item.agent {
            border-left: 3px solid var(--secondary);
        }
        
        .message-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 8px;
        }
        
        .message-title {
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 15px;
        }
        
        .message-title i {
            color: var(--primary);
        }
        
        .message-time {
            color: var(--gray);
            font-size: 12px;
        }
        
        .message-content {
            margin-bottom: 12px;
            line-height: 1.5;
            font-size: 14px;
        }
        
        .property-info {
            background: var(--light-gray);
            border-radius: var(--radius);
            padding: 10px;
            margin: 8px 0;
            border-left: 2px solid var(--primary);
        }
        
        .property-title {
            font-weight: 600;
            margin-bottom: 5px;
            color: var(--primary);
            font-size: 14px;
        }
        
        .property-details {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            font-size: 13px;
            color: var(--dark);
            margin-top: 6px;
        }
        
        .detail-item {
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        .tag {
            display: inline-block;
            padding: 3px 8px;
            background: rgba(234, 168, 42, 0.1);
            color: var(--primary);
            border-radius: 30px;
            font-size: 11px;
            margin-top: 5px;
        }
        
        .stats-row {
            display: flex;
            gap: 15px;
            margin: 8px 0;
            font-size: 13px;
        }
        
        .stat {
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        .actions {
            display: flex;
            gap: 8px;
            margin-top: 12px;
        }
        
        .action-btn {
            padding: 7px 12px;
            border-radius: var(--radius);
            font-size: 13px;
            cursor: pointer;
            transition: var(--transition);
            border: 1px solid #ddd;
            background: white;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .action-btn.primary {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
        }
        
        .action-btn.secondary {
            background: var(--secondary);
            color: white;
            border-color: var(--secondary);
        }
        
        .agent-card {
            display: flex;
            align-items: center;
            gap: 8px;
            margin: 8px 0;
            padding: 8px;
            background: rgba(46, 204, 113, 0.1);
            border-radius: var(--radius);
        }
        
        .agent-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: var(--secondary);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 600;
        }
        
        .agent-info {
            flex: 1;
        }
        
        .agent-name {
            font-weight: 600;
            margin-bottom: 2px;
            font-size: 14px;
        }
        
        .agent-title {
            font-size: 12px;
            color: var(--gray);
        }
        
        /* 底部导航 - 与home.html一致 */
        .tab-bar {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            display: flex;
            background: white;
            box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
            padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
            z-index: 1000;
            max-width: 428px;
            margin: 0 auto;
            border-radius: 20px 20px 0 0;
        }
        
        .tab-item {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 8px 5px 10px;
            min-height: 60px;
            border-radius: 16px;
            margin: 0 5px;
            transition: all 0.2s ease;
            position: relative;
            cursor: pointer;
        }
        
        .tab-item::after {
            content: '';
            position: absolute;
            top: -15px;
            bottom: -15px;
            left: 0;
            right: 0;
        }
        
        .tab-icon {
            font-size: 1.4rem;
            margin-bottom: 4px;
            transition: all 0.2s ease;
        }
        
        .tab-label {
            font-size: 12px;
            font-weight: 500;
            transition: all 0.2s ease;
        }
        
        .tab-item.active {
            background: rgba(234, 168, 42, 0.15);
        }
        
        .tab-item.active .tab-icon {
            color: var(--primary);
            transform: scale(1.1);
        }
        
        .tab-item.active .tab-label {
            color: var(--primary);
            font-weight: 600;
        }
        
        .tab-item:not(.active):hover {
            background: rgba(0, 0, 0, 0.03);
        }
        
        .tab-item:not(.active) .tab-icon {
            color: #6c757d;
        }
        
        .tab-item:not(.active) .tab-label {
            color: #495057;
        }
        
        /* 响应式调整 */
        @media (max-width: 375px) {
            .brand-title {
                font-size: 20px;
            }
            
            .brand-subtitle {
                font-size: 11px;
            }
            
            .tab-icon {
                font-size: 1.3rem;
            }
            
            .tab-label {
                font-size: 11px;
            }
            
            .panel-title {
                font-size: 15px;
            }
            
            .stat-value {
                font-size: 16px;
            }
            
            .message-title {
                font-size: 14px;
            } 
	
       
    </style>
</head>
<body>
    <!-- 顶部品牌区域 - 与home.html一致 -->
    <header class="brand-header">
          <div class="back-btn" id="backBtn">
            <i class="fas fa-arrow-left"></i>
        </div>
        <div class="brand-title">吉象出海</div>
        <div class="brand-subtitle">泰国专业房地产服务平台</div>
    </header>
   

<style>
/* CSS */
.back-btn {
    font-size: 20px;
    color: #EAA82A; /* 主色 */
    cursor: pointer;
    padding: 10px;
}
</style>

<script>
// JavaScript
document.getElementById('backBtn').addEventListener('click', function() {
    window.location.href = 'home.html';
});
</script>
	
	
    <!-- 消息页面内容 -->
    <div class="container">
        <!-- 页面标题 -->
   
        
        <!-- 分类导航 -->
        <div class="category-nav">
            <div class="category-tab active">全部</div>
            <div class="category-tab">我的分享 <span class="badge">3</span></div>
            <div class="category-tab">中介消息 <span class="badge">5</span></div>
            <div class="category-tab">系统通知</div>
        </div>
        
        <!-- 操作栏 -->
        <div class="action-bar">
            <div class="search-box">
                <i class="fas fa-search"></i>
                <input type="text" placeholder="搜索消息...">
            </div>
            <div class="filter-btn">
                <i class="fas fa-filter"></i>
                <span>筛选</span>
            </div>
        </div>
        
        <!-- 收益面板 -->
        <div class="earnings-panel">
            <div class="panel-header">
                <div class="panel-title">本月分享收益报告</div>
                <i class="fas fa-chart-line"></i>
            </div>
            <div class="stats-grid">
                <div class="stat-item">
                    <div class="stat-value">8,742</div>
                    <div class="stat-label">曝光量</div>
                </div>
                <div class="stat-item">
                    <div class="stat-value">12</div>
                    <div class="stat-label">转化为咨询</div>
                </div>
                <div class="stat-item">
                    <div class="stat-value">฿23,800</div>
                    <div class="stat-label">预估佣金收益</div>
                </div>
            </div>
        </div>
        
        <!-- 消息列表 -->
        <div class="message-list">
            <div class="section-title">
                <i class="fas fa-thumbtack"></i>
                置顶消息
            </div>
            
            <!-- 置顶消息 -->
            <div class="message-item pinned">
                <div class="message-header">
                    <div class="message-title">
                        <i class="fas fa-crown"></i>
                        金牌中介·张经理
                    </div>
                    <div class="message-time">刚刚</div>
                </div>
                <div class="agent-card">
                    <div class="agent-avatar">张</div>
                    <div class="agent-info">
                        <div class="agent-name">张经理</div>
                        <div class="agent-title">金牌中介 | 5年经验 | 98%好评</div>
                    </div>
                </div>
                <div class="message-content">
                    <p>对您发布的 <strong>罗勇2009莱土地</strong> 很感兴趣，希望预约实地考察</p>
                </div>
                <div class="actions">
                    <button class="action-btn secondary">
                        <i class="fab fa-line"></i> LINE联系
                    </button>
                    <button class="action-btn primary">
                        <i class="fas fa-phone-alt"></i> 立即回复
                    </button>
                </div>
            </div>
            
            <div class="section-title">
                <i class="fas fa-share-alt"></i>
                最新分享
            </div>
            
            <!-- 分享消息 -->
            <div class="message-item">
                <div class="message-header">
                    <div class="message-title">
                        <i class="fas fa-share-square"></i>
                        土地出租推广成功
                    </div>
                    <div class="message-time">2小时前</div>
                </div>
                <div class="message-content">
                    <p>您发布的 <strong>春武里33莱地块</strong> 被用户分享</p>
                    
                    <div class="property-info">
                        <div class="property-title">春武里·33莱 | 临街12米 | 距寺庙1.2km</div>
                        <div class="property-details">
                            <div class="detail-item">
                                <i class="fas fa-map-marker-alt"></i>
                                <span>春武里府</span>
                            </div>
                            <div class="detail-item">
                                <i class="fas fa-ruler-combined"></i>
                                <span>33莱</span>
                            </div>
                            <div class="detail-item">
                                <i class="fas fa-paint-brush"></i>
                                <span>黄色地块</span>
                            </div>
                        </div>
                        <div class="tag">
                            <i class="fas fa-shield-alt"></i> 土地文件齐全
                        </div>
                    </div>
                    
                    <div class="stats-row">
                        <div class="stat">
                            <i class="fas fa-eye"></i>
                            <span>曝光量 +1,240</span>
                        </div>
                        <div class="stat">
                            <i class="fas fa-user-friends"></i>
                            <span>潜在租客 +3</span>
                        </div>
                    </div>
                </div>
                <div class="actions">
                    <button class="action-btn">
                        <i class="fas fa-user"></i> 查看用户_1446
                    </button>
                    <button class="action-btn">
                        <i class="fas fa-chart-line"></i> 查看数据
                    </button>
                </div>
            </div>
            
            <div class="message-item">
                <div class="message-header">
                    <div class="message-title">
                        <i class="fas fa-share-square"></i>
                        土地出售推广成功
                    </div>
                    <div class="message-time">3小时前</div>
                </div>
                <div class="message-content">
                    <p>您发布的 <strong>春武里47莱土地</strong> 被用户分享</p>
                    
                    <div class="property-info">
                        <div class="property-title">春武里·47莱 | 临海800米 | 紫色土地</div>
                        <div class="property-details">
                            <div class="detail-item">
                                <i class="fas fa-map-marker-alt"></i>
                                <span>春武里府</span>
                            </div>
                            <div class="detail-item">
                                <i class="fas fa-ruler-combined"></i>
                                <span>47莱</span>
                            </div>
                            <div class="detail-item">
                                <i class="fas fa-paint-brush"></i>
                                <span>紫色土地</span>
                            </div>
                        </div>
                        <div class="tag">
                            <i class="fas fa-tag"></i> 急售
                        </div>
                    </div>
                    
                    <div class="stats-row">
                        <div class="stat">
                            <i class="fas fa-eye"></i>
                            <span>曝光量 +980</span>
                        </div>
                        <div class="stat">
                            <i class="fas fa-user-friends"></i>
                            <span>潜在买家 +2</span>
                        </div>
                    </div>
                </div>
                <div class="actions">
                    <button class="action-btn">
                        <i class="fas fa-user"></i> 查看用户_7340
                    </button>
                    <button class="action-btn">
                        <i class="fas fa-chart-line"></i> 查看数据
                    </button>
                </div>
            </div>
            
            <div class="message-item agent">
                <div class="message-header">
                    <div class="message-title">
                        <i class="fas fa-user-tie"></i>
                        中介咨询
                    </div>
                    <div class="message-time">5小时前</div>
                </div>
                <div class="agent-card">
                    <div class="agent-avatar">王</div>
                    <div class="agent-info">
                        <div class="agent-name">王经理</div>
                        <div class="agent-title">高级中介 | 合作率92%</div>
                    </div>
                </div>
                <div class="message-content">
                    <p>对您发布的 <strong>罗勇2009莱黄色土地</strong> 有客户感兴趣，请求更多细节资料</p>
                </div>
                <div class="actions">
                    <button class="action-btn">
                        <i class="fas fa-file-alt"></i> 发送资料
                    </button>
                    <button class="action-btn primary">
                        <i class="fas fa-phone-alt"></i> 联系中介
                    </button>
                </div>
            </div>
            
            <div class="message-item">
                <div class="message-header">
                    <div class="message-title">
                        <i class="fas fa-share-square"></i>
                        土地出租推广成功
                    </div>
                    <div class="message-time">昨天</div>
                </div>
                <div class="message-content">
                    <p>您发布的 <strong>800莱紫色土地</strong> 被用户分享</p>
                    
                    <div class="property-info">
                        <div class="property-title">800莱 | 农业用地 | 距曼谷120km</div>
                        <div class="property-details">
                            <div class="detail-item">
                                <i class="fas fa-map-marker-alt"></i>
                                <span>罗勇府</span>
                            </div>
                            <div class="detail-item">
                                <i class="fas fa-ruler-combined"></i>
                                <span>800莱</span>
                            </div>
                            <div class="detail-item">
                                <i class="fas fa-paint-brush"></i>
                                <span>紫色土地</span>
                            </div>
                        </div>
                        <div class="tag">
                            <i class="fas fa-tractor"></i> 适合农业
                        </div>
                    </div>
                    
                    <div class="stats-row">
                        <div class="stat">
                            <i class="fas fa-eye"></i>
                            <span>曝光量 +2,150</span>
                        </div>
                        <div class="stat">
                            <i class="fas fa-user-friends"></i>
                            <span>潜在租客 +5</span>
                        </div>
                    </div>
                </div>
                <div class="actions">
                    <button class="action-btn">
                        <i class="fas fa-user"></i> 查看用户_6666
                    </button>
                    <button class="action-btn">
                        <i class="fas fa-chart-line"></i> 查看数据
                    </button>
                </div>
            </div>
        </div>
    </div>
    
       <!-- 底部导航菜单 -->
<!-- 底部导航菜单 -->
<div class="tab-bar">
    <a href="home.html" class="tab-item">
        <div class="tab-icon"><i class="fas fa-home"></i></div>
        <div class="tab-label">首页</div>
    </a>
    <a href="message.html" class="tab-item active">
        <div class="tab-icon"><i class="fas fa-comment-dots"></i></div>
        <div class="tab-label">消息</div>
    </a>
    <a href="postlist.html" class="tab-item">
        <div class="tab-icon"><i class="fas fa-plus-circle"></i></div>
        <div class="tab-label">发布</div>
    </a>
    <a href="entrust.html" class="tab-item">
        <div class="tab-icon"><i class="fas fa-handshake"></i></div>
        <div class="tab-label">委托</div>
    </a>
    <a href="profile.html" class="tab-item">
        <div class="tab-icon"><i class="fas fa-user"></i></div>
        <div class="tab-label">我的</div>
    </a>
</div>
    
    <script>
// 底部导航交互
document.querySelectorAll('.tab-bar a.tab-item').forEach(item => {
    item.addEventListener('click', function(e) {
        if(this.classList.contains('active')) {
            e.preventDefault();
        }
        document.querySelectorAll('.tab-bar a.tab-item').forEach(i => i.classList.remove('active'));
        this.classList.add('active');
    });
});

// 分类标签切换
const categoryTabs = document.querySelectorAll('.category-tab');
categoryTabs.forEach(tab => {
    tab.addEventListener('click', function() {
        categoryTabs.forEach(t => t.classList.remove('active'));
        this.classList.add('active');
    });
});

// 消息项点击效果
const messageItems = document.querySelectorAll('.message-item');
messageItems.forEach(item => {
    item.addEventListener('click', function(e) {
        if (!e.target.classList.contains('action-btn')) {
            this.classList.toggle('active');
        }
    });
});

// 操作按钮效果
const actionButtons = document.querySelectorAll('.action-btn');
actionButtons.forEach(button => {
    button.addEventListener('click', function(e) {
        e.stopPropagation();
        alert('操作已触发: ' + this.textContent.trim());
    });
});
        
        // 设置当前页面的tab为active
        document.querySelector('.tab-item:nth-child(3)').classList.add('active');
        
        // 分类标签切换
        const categoryTabs = document.querySelectorAll('.category-tab');
        categoryTabs.forEach(tab => {
            tab.addEventListener('click', function() {
                categoryTabs.forEach(t => t.classList.remove('active'));
                this.classList.add('active');
                
                // 这里在实际应用中会加载不同类别的消息
                // 简化演示中不实现具体加载逻辑
            });
        });
        
        // 消息项点击效果
        const messageItems = document.querySelectorAll('.message-item');
        messageItems.forEach(item => {
            item.addEventListener('click', function(e) {
                // 防止按钮点击时触发
                if (!e.target.classList.contains('action-btn')) {
                    this.classList.toggle('active');
                }
            });
        });
        
        // 操作按钮效果
        const actionButtons = document.querySelectorAll('.action-btn');
        actionButtons.forEach(button => {
            button.addEventListener('click', function(e) {
                e.stopPropagation(); // 阻止事件冒泡
                alert('操作已触发: ' + this.textContent.trim());
            });
        });
        
        // 底部导航交互
        document.querySelectorAll('.tab-item').forEach(item => {
            item.addEventListener('click', function() {
                document.querySelectorAll('.tab-item').forEach(i => {
                    i.classList.remove('active');
                });
                this.classList.add('active');
                
                // 根据点击的tab跳转到对应页面
                const label = this.querySelector('.tab-label').textContent;
                if (label === '首页') {
                    window.location.href = 'home.html';
                } else if (label === '头条') {
                    window.location.href = 'news.html';
                } else if (label === '发布') {
                    window.location.href = 'post.html';
                }
                // 其他页面跳转逻辑...
            });
        });
		
		
    </script>
</body>
</html>